package io.github.wslxm.springbootplus2.core.base.desensitization.handler;


import cn.hutool.core.util.DesensitizedUtil;
import io.github.wslxm.springbootplus2.core.base.desensitization.DesensitizationHandler;

/**
 * 【中文姓名】只显示第一个汉字，其他隐藏为2个星号，比如：李**
 *
 * @author wangsong
 * @date 2023/09/05
 */
public class ChineseNameDesensitizationHandler implements DesensitizationHandler {

    @Override
    public String handler(String str) {
        return DesensitizedUtil.chineseName(str);
    }
}
